<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>&lt;%GLibMarkupCollectType&gt;: </title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
<link rel="home" href="index.html" title="">
<link rel="up" href="ch01.html" title="GLib">
<link rel="prev" href="re35.html" title="&lt;GMappedFile&gt;">
<link rel="next" href="re37.html" title="&lt;%GLibMarkupError&gt;">
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts"></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="re35.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="re37.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="id-1.1.37"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2>&lt;%GLibMarkupCollectType&gt;</h2>
<p>&lt;%GLibMarkupCollectType&gt;</p>
</div>
<div class="refsect1">
<a name="id-1.1.37.2"></a><h2>Description</h2>
<p>A mixed enumerated type and flags field. You must specify one type
(string, strdup, boolean, tristate).  Additionally, you may  optionally
bitwise OR the type with the flag <code class="constant">G_MARKUP_COLLECT_OPTIONAL</code>.
</p>
<p>It is likely that this enum will be extended in the future to
support other types.</p>
</div>
<div class="refsect1">
<a name="id-1.1.37.3"></a><h2>Members</h2>
<div class="refsect2">
<a name="id-1.1.37.3.2"></a><h3>invalid</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_INVALID</code></span></em></p>
<p>used to terminate the list of attributes
    to collect</p>
</div>
<div class="refsect2">
<a name="id-1.1.37.3.3"></a><h3>string</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_STRING</code></span></em></p>
<p>collect the string pointer directly from
    the attribute_values[] array. Expects a parameter of type (const
    char **). If <code class="constant">G_MARKUP_COLLECT_OPTIONAL</code> is specified and the
    attribute isn't present then the pointer will be set to <code class="constant">NULL</code></p>
</div>
<div class="refsect2">
<a name="id-1.1.37.3.4"></a><h3>strdup</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_STRDUP</code></span></em></p>
<p>as with <code class="constant">G_MARKUP_COLLECT_STRING</code>, but
    expects a parameter of type (char **) and <code class="function">g_strdup()</code>s the
    returned pointer. The pointer must be freed with <code class="function">g_free()</code></p>
</div>
<div class="refsect2">
<a name="id-1.1.37.3.5"></a><h3>boolean</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_BOOLEAN</code></span></em></p>
<p>expects a parameter of type (gboolean *)
    and parses the attribute value as a boolean. Sets <code class="constant">FALSE</code> if the
    attribute isn't present. Valid boolean values consist of
    (case-insensitive) "false", "f", "no", "n", "0" and "true", "t",
    "yes", "y", "1"</p>
</div>
<div class="refsect2">
<a name="id-1.1.37.3.6"></a><h3>tristate</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_TRISTATE</code></span></em></p>
<p>as with <code class="constant">G_MARKUP_COLLECT_BOOLEAN</code>, but
    in the case of a missing attribute a value is set that compares
    equal to neither <code class="constant">FALSE</code> nor <code class="constant">TRUE</code> G_MARKUP_COLLECT_OPTIONAL is
    implied</p>
</div>
<div class="refsect2">
<a name="id-1.1.37.3.7"></a><h3>optional</h3>
<p class="remark"><em><span class="remark">alias <code class="code">G_MARKUP_COLLECT_OPTIONAL</code></span></em></p>
<p>can be bitwise ORed with the other fields.
    If present, allows the attribute not to appear. A default value
    is set depending on what value type is used</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.1</div>
</body>
</html>
